<?php

$db = new PGSQLConnector('u_superuser');

$languageSQL = "SELECT\n";
$languageSQL .= "l.language\n";
$languageSQL .= "FROM language AS l\n";
$languageSQL .= "WHERE timedeleted IS NULL\n";
$languageSQL .= "ORDER BY l.language";
$language = $db->query2array($languageSQL);

//Language skill
$languageSkill = Array();
$languageSkill[] = 'Good';
$languageSkill[] = 'Excellent';
$languageSkill[] = 'Fair';

$template = newPage('language');
$template->title = 'Languages Info - IAESTE Application System';
$template->languageskill = $languageSkill;
$template->language = $language;

try {
    echo $template->execute();
} catch (Exception $e) {
    echo $e;
}
?>
